package com.demo.util;

import javax.servlet.http.HttpServletRequest;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class RequestUtils {
	private static final Logger log = LoggerFactory.getLogger(RequestUtils.class);
	
	private static final ThreadLocal<HttpServletRequest> requestLocal = new ThreadLocal<HttpServletRequest>();
	
	public static HttpServletRequest getRequest(){
		return requestLocal.get();
	}
	
	public static void setRequest(HttpServletRequest request){
		requestLocal.set(request);
	}
}
